import { STUDY_MATCH_CITY, STUDY_MATCH_TARGET } from '@/enum/study-match';
import { GENDER, REQUIREMENT } from '@/enum/user';
import { ApiProperty } from '@nestjs/swagger';

export class StudyMatchNeedDto {
  /**
   * 用户id
   */
  userId: number;

  /**
   * 是否放宽偏好
   */
  @ApiProperty({
    name: 'requirement',
    description: '是否放宽偏好',
    enum: REQUIREMENT,
    example: REQUIREMENT.NOT_RELAX,
  })
  requirement: REQUIREMENT;

  @ApiProperty({
    name: 'city',
    description: '对方所在城市',
    enum: STUDY_MATCH_CITY,
    example: STUDY_MATCH_CITY.ALL,
  })
  city: STUDY_MATCH_CITY;

  @ApiProperty({
    name: 'sex',
    description: '对方的性别，1为男，2为女',
    enum: GENDER,
    example: GENDER.BOY,
  })
  sex: GENDER;

  @ApiProperty({
    name: 'target',
    description: '希望对方的目',
    enum: STUDY_MATCH_TARGET,
    example: STUDY_MATCH_TARGET.ALL,
  })
  target: STUDY_MATCH_TARGET;

  @ApiProperty({
    name: 'age',
    description: '对方的年龄区间',
    example: '20-30',
  })
  age: string;

  @ApiProperty({
    name: 'height',
    description: '对方身高区间',
    example: '170-180',
  })
  height: string;
}
